﻿
@model LoginViewModel
@{
    Layout = null;

}
@inject SettingService _settingService
<!DOCTYPE html>
<html>
<head>
    <title>SingleBlog 管理后台 - 管理员登录</title>
    @Html.Partial("/Pages/Shared/_CommonStyles.cshtml")
    <meta name="viewport" content="width=device-width" />
</head>
<body>
        <div class="container" style="padding-top:100px">
            
            <div class="row mt-5">
                <div class="col-8 text-right">
                    <h1>SingleBlog</h1>
                    <span class="text-muted">ASP.NET CORE 轻量级开源博客系统</span>
                </div>
                <div class="col col-4">
                    <h3>管理员登录</h3>
                    <hr />
                    @if (ViewContext.ModelState.ErrorCount > 0)
                    {
                        <div asp-validation-summary="All" class="alert alert-danger"></div>
                    }
                    <form method="post">
                        @Html.HiddenFor(m=>m.ReturnUrl)
                        <div class="form-group mb-3">
                            <div class="input-group input-group-lg">
                                <div class="input-group-prepend">
                                    <span class="input-group-text"><i class="fa fa-user"></i></span>
                                </div>
                                <input asp-for="Account" placeholder="管理帐号" class="form-control" />
                            </div>
                            <span asp-validation-for="Account" class="text-danger"></span>
                        </div>
                        <div class="form-group mb-3">
                            <div class="input-group input-group-lg">
                                <div class="input-group-prepend">
                                    <span class="input-group-text"><i class="fa fa-lock"></i></span>
                                </div>
                                <input asp-for="Password" placeholder="管理密码" class="form-control" />
                            </div>
                            <span asp-validation-for="Password" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary btn-lg btn-block">登 录</button>
                        </div>
                    </form>
                </div>
            </div>
            <hr />
            <div class="row justify-content-center mt-5 text-center text-muted">
                <small>
                    @Html.Raw(_settingService.GetSystemSetting().Copyright) @_settingService.GetSystemSetting().Version
                </small>
            </div>
    </div>
    @Html.Partial("/Pages/Shared/_CommonScripts.cshtml")
    @Html.Partial("/Pages/Shared/_ValidationScripts.cshtml")
</body>
</html>